<?xml version='1.0'?>

<gl_extension name="GLX_NV_video_output" reg_no="348">
	<typedefs>
		<typedef type="unsigned int" synonym="GLXVideoDeviceNV"/>
	</typedefs>

	<tokens>
		<token name="GLX_VIDEO_OUT_COLOR_NV" value="0x20C3"/>
		<token name="GLX_VIDEO_OUT_ALPHA_NV" value="0x20C4"/>
		<token name="GLX_VIDEO_OUT_DEPTH_NV" value="0x20C5"/>
		<token name="GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV" value="0x20C6"/>
		<token name="GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV" value="0x20C7"/>
		<token name="GLX_VIDEO_OUT_FRAME_NV" value="0x20C8"/>
		<token name="GLX_VIDEO_OUT_FIELD_1_NV" value="0x20C9"/>
		<token name="GLX_VIDEO_OUT_FIELD_2_NV" value="0x20CA"/>
		<token name="GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV" value="0x20CB"/>
		<token name="GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV" value="0x20CC"/>
	</tokens>

	<functions>
		<function name="glXGetVideoDeviceNV" return="int">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="int" name="screen"/>
				<param type="int" name="numVideoDevices"/>
				<param type="GLXVideoDeviceNV*" name="pVideoDevice"/>
			</params>
		</function>
		<function name="glXReleaseVideoDeviceNV" return="int">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="int" name="screen"/>
				<param type="GLXVideoDeviceNV" name="VideoDevice"/>
			</params>
		</function>
		<function name="glXBindVideoImageNV" return="int">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="GLXVideoDeviceNV" name="VideoDevice"/>
				<param type="GLXPbuffer" name="pbuf"/>
				<param type="int" name="iVideoBuffer"/>
			</params>
		</function>
		<function name="glXReleaseVideoImageNV" return="int">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="GLXPbuffer" name="pbuf"/>
			</params>
		</function>
		<function name="glXSendPbufferToVideoNV" return="int">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="GLXPbuffer" name="pbuf"/>
				<param type="int" name="iBufferType"/>
				<param type="unsigned long*" name="pulCounterPbuffer"/>
				<param type="GLboolean" name="bBlock"/>
			</params>
		</function>
		<function name="glXGetVideoInfoNV" return="int">
			<params>
				<param type="Display*" name="dpy"/>
				<param type="int" name="screen"/>
				<param type="GLXVideoDeviceNV" name="VideoDevice"/>
				<param type="unsigned long*" name="pulCounterOutputPbuffer"/>
				<param type="unsigned long*" name="pulCounterOutputVideo"/>
			</params>
		</function>
	</functions>
</gl_extension>
